package com.im.partchat.http.api;


import com.im.partchat.bean.Department;
import com.im.partchat.bean.User;
import com.im.partchat.bean.UserBean;
import com.im.partchat.bean.reponsed.BaseResponse;
import com.im.partchat.bean.request.ChangePawRequest;
import com.im.partchat.bean.request.LoginRequest;
import com.im.partchat.bean.request.RequestBean;
import com.im.partchat.bean.request.UserListRequest;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * Created by fzl on 2017/6/27 0027.
 * VersionCode: 1
 * Desc:
 */

public interface UserApi {



    @POST("logout/getToken")
    Observable<BaseResponse<UserBean>> login(@Body RequestBean<LoginRequest> object);

    @POST("logon/getUsers")
    Observable<BaseResponse<List<User>>> getUserList(@Body RequestBean<UserListRequest> str);

    @POST("logon/getDepts")
    Observable<BaseResponse<List<Department>>> getDeptList(@Body Object str);

    @POST("logon/changePwd")
    Observable<BaseResponse<String>> changePaw(@Body  RequestBean<ChangePawRequest> str);


}
